<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Lesson extends Model
{
    use SoftDeletes;
    public $table = 'lessons';
    public function course(){
       return $this->hasOne(Course::class,'id','course_id');
    }
}
